package com.sky.mapper.category;

import com.sky.pojo.SetmealDish;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    /**
     * 根据套餐新增套餐菜品
     */
    void add(List<SetmealDish> sds);

    /**
     * 根据套餐id删除
     * @param setmealIds
     */
    void delBySetmealIds(List<Long> setmealIds);

    /**
     * 根据套餐id查询菜品
     * @param setmealId
     * @return
     */
    @Select("select * from setmeal_dish where setmeal_id = #{setmealId}")
    List<SetmealDish> queryDishBySetmealId(Long setmealId);
}
